package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.Grade;

import java.util.List;

/**
 * <p>
 * 年级 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public interface GradeService extends IService<Grade> {
	
	Grade AddNewGrade(Grade grade);
	
	Grade UpdateGrade(Grade grade);
	
	Grade GetGradeInfo(Integer id);
		
	IPage<Grade> ListGradeWithTagAndType(Integer count,Integer page,Integer type,Integer tag,Boolean withoutBan);
	
	List<Grade> SearchGradeWithKey(String key,Boolean withoutBan);
	
	Grade UpdateGradeState(Integer id,Integer state);
	
	List<com.think.teaching.model.Class> ListGradeClass(Integer id,Boolean withoutDelete);

}
